<template>
	<view class="item">
		<view class="item-left">
			<slot name="left"></slot>
		</view>
		<view class="item-right">
			<view class="title">{{title}}</view>
			<view class="description">{{description}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "cell-message",
		props: {
			title: {
				type: String,
				default: '系统消息'
			},
			description:{
				type: String,
				default: '欢迎访问'
			}
		},
	}
</script>

<style>
	.item {
		display: flex;
		padding: 5px 10px;
	}

	.item-left {
		width: 50px;
		height: 50px;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.item-left image {
		width: 40px;
		height: 40px;
		border-radius: 5px;
		background-color: #fff;
		overflow: hidden;
	}

	.item-right {
		flex: 1;
		margin-left: 14px;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		border-bottom: 1px solid #eee;
	}

	.title {
		font-weight: bold;
	}

	.description {
		font-size: 12px;
		color: #666;
	}
</style>
